package com.weixin.portalweb.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: Jack
 * @create: 2019-11-25 14:19
 **/
@Controller
public class DemoController {
    @RequestMapping("/")
    public String index(ModelMap map){
        map.addAttribute("message","hello");
        return "index";

    }

}
